<!--
 * @Description: 
 * @Version: 1.0
 * @Author: Yuanjy
 * @Date: 2020-04-13 00:56:00
 * @LastEditors: Yuanjy
 * @LastEditTime: 2020-05-29 11:24:49
 -->
<template>
  <div class="diet-imgs-box">
    <div class="recommend-diet-tit">{{ title }}</div>
    <div class="imgs">
      <img v-for="(img,index) in imgs" :src="img" :key="index" @click="imgBig(img)">
    </div>
  </div>
</template>
<script>
export default {
  props: {
    imgs: {
      type: Array,
      default: () => {
        return []
      }
    },
    title: {
      type: String,
      default: ''
    }
  },
  data() {
    return {

    }
  },
  created() {

  },
  methods: {
    imgBig(url) {
      this.$emit('bigPicture', url)
    }
  }
}
</script>
<style>
.imgs img{
  width: 147px;
  height: 170px;
  display: inline-block;
  margin: 0 8px;
  border: 0;
}
</style>
